package com.joney.backstage.mapper;

import com.joney.backstage.entity.Resource;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.joney.backstage.pojo.EasyUITree;
import com.joney.backstage.pojo.MenuTree;

import java.util.List;

/**
 * <p>
 * 资源表 Mapper 接口
 * </p>
 *
 * @author joney123
 * @since 2018-01-15
 */
public interface ResourceMapper extends BaseMapper<Resource> {

    List<MenuTree> selectNavigationTree(int id);

    List<Resource> selectResourcesByUserId(int userId);

    List<EasyUITree> selectResTree(int id);

    List<EasyUITree> selectLeftMenu(int id);
}
